package com;

import com.spring.ioc.entity.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class JavaBasicApplication {

	public static void main(String[] args) {
		ApplicationContext ctx = SpringApplication.run(JavaBasicApplication.class, args);
        Person person = ctx.getBean(Person.class);
        System.out.println("Name get from bean in IOC container is : " + person.getName());
        person.call();
    }

}

